/************************************************************************
 * <br>
 * <ul>
 * <li>版权所有：唐山弘川科技有限公司 2009－2020</li>
 * <li>创建日期：2009-8-12</li>
 * <li>初始作者：刘川</li>
 * </ul>
 * <ul>
 * <b>修订历史</b>
 * <li>1、</li>
 * </ul>
 ***********************************************************************/
package com.hy.erp.inventory.pojo ;
import javax.persistence.CascadeType ;
import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.FetchType ;
import javax.persistence.ManyToOne ;
import javax.persistence.OneToOne ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
//import org.jboss.seam.annotations.Name ;

import com.hy.erp.inventory.dao.interfaces.ICountyDao;
import com.hy.erp.inventory.pojo.interfaces.ICounty;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;


/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-5；时间：下午03:47:31</li>
 * <li>类型名称：County</li>
 * <li>设计目的：县</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>  
 */
/*@Name("county")
@ Entity ( name = "county" )
@Table(name="county")
@ DaoA ( ICountyDao.class )*/
//public class County  extends AbstractPersistentEntity implements ICounty
public class County extends MyBaseModel //implements IPositonType
{
	private static final long	serialVersionUID	=
	                                                  5184639141689612482L ;
	
	/**
	 * 构造函数
	 */
	public County ( )
	{
		super ( ) ;
	}

	public LocationType getLocationType ( )
	{

		return this.get(ICounty.LOCATIONTYPE) ;
	}

	public void setLocationType (
									LocationType locationType )
	{
		super.set (ICounty.LOCATIONTYPE , locationType );
	}
	@ Column ( name = "abbreviation" , length = 50)
	@ Index ( name = "abbreviationIndex" )
	public String getAbbreviation ( )
	{
		return this.get(ICounty.ABBREVIATION) ;
	}

	public void setAbbreviation (
									String abbreviation )
	{
		super.set (ICounty.ABBREVIATION , abbreviation );
	}
	@ Column ( name = "ancillaryCode" , length = 50)
	@ Index ( name = "ancillaryCodeIndex" )
	public String getAncillaryCode ( )
	{
		return this.get(ICounty.ANCILLARYCODE) ;
	}

	public void setAncillaryCode (
									String ancillaryCode )
	{
		super.set (ICounty.ANCILLARYCODE , ancillaryCode );
	}

@ManyToOne(targetEntity=City.class,fetch=FetchType.LAZY)
	public City getCity ( )
	{
	return this.get(ICounty.CITY) ;
	}

	public void setCity (
							City city )
	{
		super.set (ICounty.CITY , city );
	}
	@ Column ( name = "description" , length = 50)
	@ Index ( name = "descriptionIndex" )
	public String getDescription ( )
	{
		return this.get(ICounty.DESCRIPTION) ;
	}

	public void setDescription (
									String description )
	{
		super.set (ICounty.DESCRIPTION , description );
	}
	@ Column ( name = "name" , length = 50)
	@ Index ( name = "nameIndex" )
	public String getName ( )
	{
		return this.get(ICounty.NAME) ;
	}

	public void setName (
							String name )
	{
		super.set (ICounty.LOCATIONTYPE , name );
	}
	@ Column ( name = "namedCode" , length = 50)
	@ Index ( name = "namedCodeIndex" )
	public String getNamedCode ( )
	{
		return this.get(ICounty.NAMECODE) ;
	}

	public void setNamedCode (
								String namedCode )
	{
		super.set (ICounty.NAMECODE , namedCode );
	}

	
	
}
